package com.kehutong.payfees.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;

import com.kehutong.payfees.enums.FeesType;

import java.util.List;

@Table(value = "t_charge_fee_type", comment="收费类型", multi = true)
public class ChargeFeeType extends Entity {

    private static final long serialVersionUID = -5748750679896671239L;

    protected ChargeFeeType(String id) {
        super(id);
    }

    @Column(comment = "收费类型")
    private FeesType feetype;

    @Column(comment = "类型名称")
    private String name;

    @UnSave
    private boolean disabled;

    @UnSave
    private String type;

    @UnSave private List<ChargeFeeType> childList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public FeesType getFeetype() {
        return feetype;
    }

    public void setFeetype(FeesType feetype) {
        this.feetype = feetype;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<ChargeFeeType> getChildList() {
        return childList;
    }

    public void setChildList(List<ChargeFeeType> childList) {
        this.childList = childList;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }
}
